package com.techsoul.module.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.basic.pojo.entity.CustomerConsignee;
import com.techsoul.module.basic.pojo.param.CustomerConsigneeSearchParam;
import com.techsoul.module.basic.pojo.vo.CustomerConsigneeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户收件人Mapper接口
 * 
 * @author liuen
 * @date 2023-07-17
 */
public interface CustomerConsigneeMapper extends BaseMapper<CustomerConsignee> {

    /**
     * 详情
     * @param id
     * @return
     */
    CustomerConsigneeVo findById(String id);
    CustomerConsignee findByCode(@Param("code") String cccode);
    /**
     * 列表
     * @param params
     * @return
     */
    List<CustomerConsigneeVo> findAll(@Param("params") CustomerConsigneeSearchParam params);

    /**
     * 分页
     * @param page
     * @param params
     * @return
     */
    IPage<CustomerConsigneeVo> findAll(Page page, @Param("params") CustomerConsigneeSearchParam params);

}
